package com.atguigu.gmall.user.service;

import com.atguigu.gmall.model.user.UserAddress;
import com.atguigu.gmall.model.user.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author dyqstart
 * @create 2021-08-16-18:13
 * @since 1.0.0
 */
public interface UserService extends IService<UserInfo> {

    UserInfo login(UserInfo userInfo);

    Map<String, Object> handleLoginSuccess(UserInfo userInfo, HttpServletRequest request);

    void logout(String token);


    List<UserAddress> getUserAddressListByUserId(String userId);
}
